<title>我的交易</title>
<div id="ranking" style="padding-top: 3em;" ng-init="list=1">
	<div class="choose">
		<div class="mui-content mainchoose">
			<div class="mui-row" style="position: fixed;top: 0px;width: 100%;z-index: 999;">
				<div class="mui-col-sm-6 mui-col-xs-6">

					<a ng-class="{active:list==1}" ng-click="list=1">
						综合榜
						
					</a>

				</div>
				<div class="mui-col-sm-6 mui-col-xs-6">

					<a ng-class="{active:list==2}" ng-click="list=2">
						胜率榜
						
					</a>

				</div>
				
			</div>
		</div>
		<div ng-if="list==1" class="page">
            <div class="mui-scroll-wrapper">
	<div class="mui-scroll">
		<p>123</p>
	</div>
</div>
		</div>
		<div ng-if="list==2" class="page">

		</div>
	</div>
</div>
<script>
	$('.page').height($(window).height() - $('#onepage').height() - 100);

	function changeAccount() {
		window.location.href = "#/addAccount"

	}

	layui.use('upload', function() {
		var upload = layui.upload;

		//执行实例
		var uploadInst = upload.render({
			elem: '#headBtn' //绑定元素
				,
			url: '/upload/' //上传接口

			,
			before: function(obj) { //obj参数包含的信息，跟 choose回调完全一致，可参见上文。
				obj.preview(function(index, file, result) {
					$('#headBtn img').attr('src', result); //图片链接（base64）
				});
			},
			done: function(res) {
				//上传完毕回调
			},
			error: function() {
				//请求异常回调
			}
		});
	});
</script>